home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / xml4j.jar / com / ibm / xml / parser / TXNotation.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-08-30  |  2.1 KB  |  76 lines

  1. package com.ibm.xml.parser;
  2.  
  3. import org.w3c.dom.Node;
  4. import org.w3c.dom.Notation;
  5.  
  6. public class TXNotation extends Child {
  7.    static final long serialVersionUID = -1546534879299424756L;
  8.    String name;
  9.    ExternalID externalID;
  10.  
  11.    public TXNotation(String var1, ExternalID var2) {
  12.       this.name = var1;
  13.       this.externalID = var2;
  14.    }
  15.  
  16.    public synchronized Object clone() {
  17.       ((Child)this).checkFactory();
  18.       TXNotation var1 = super.factory.createNotation(this.name, this.externalID);
  19.       ((Child)var1).setFactory(((Child)this).getFactory());
  20.       return var1;
  21.    }
  22.  
  23.    public synchronized boolean equals(Node var1, boolean var2) {
  24.       if (var1 == null) {
  25.          return false;
  26.       } else if (!(var1 instanceof TXNotation)) {
  27.          return false;
  28.       } else {
  29.          TXNotation var3 = (TXNotation)var1;
  30.          return !this.getName().equals(var3.getName()) ? false : this.getExternalID().equals(var3.getExternalID());
  31.       }
  32.    }
  33.  
  34.    public short getNodeType() {
  35.       return 12;
  36.    }
  37.  
  38.    public String getNodeName() {
  39.       return this.name;
  40.    }
  41.  
  42.    /** @deprecated */
  43.    public String getName() {
  44.       return this.name;
  45.    }
  46.  
  47.    /** @deprecated */
  48.    public void setName(String var1) {
  49.       this.name = var1;
  50.    }
  51.  
  52.    public String getSystemId() {
  53.       return this.externalID.getSystemLiteral();
  54.    }
  55.  
  56.    public String getPublicId() {
  57.       return this.externalID.getPubidLiteral();
  58.    }
  59.  
  60.    public ExternalID getExternalID() {
  61.       return this.externalID;
  62.    }
  63.  
  64.    public void acceptPre(Visitor var1) throws Exception {
  65.       var1.visitNotationPre(this);
  66.    }
  67.  
  68.    public void acceptPost(Visitor var1) throws Exception {
  69.       var1.visitNotationPost(this);
  70.    }
  71.  
  72.    protected Notation getNotationImpl() {
  73.       return new NotationImpl(this.name, this.externalID);
  74.    }
  75. }
  76.